package com.erp.gather.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.gather.api.domain.ErpSellerStoreProductSku;
import com.ruoyi.gather.api.domain.QueryProductParam;
import com.erp.gather.domain.dto.SkuInventory;
import com.erp.gather.domain.vo.ErpSellerStoreProductSkuVo;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 卖家在线商品SKU;参考AE-商品：发布产品信息（aliexpress.postproduct.redefining.postaeproduct）Mapper接口
 *
 * @author erp
 * @date 2023-03-28
 */
public interface ErpSellerStoreProductSkuMapper extends BaseMapperPlus<ErpSellerStoreProductSkuMapper, ErpSellerStoreProductSku, ErpSellerStoreProductSkuVo> {

    Page<ErpSellerStoreProductSku> getSkuAndProduct(@Param("page")Page<ErpSellerStoreProductSku> build, @Param("param") QueryProductParam param);

    List<SkuInventory> getSellerStoreSkuAttr(@Param("id")Long id);
}
